$(document).ready(function(e){oTable = $('#dataTable').dataTable({"bJQueryUI": true,"bScrollCollapse": false,"sScrollY": "450px","bAutoWidth": true,"bPaginate": true,"sPaginationType": "full_numbers","bStateSave": true,"bInfo": true,"bFilter": true,"iDisplayLength": 25,"bLengthChange": true,"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]]});
	var idCL = $("#idCL").val();
	var duongdan = $("#duongdan").val();
	var duongdans = $("#duongdans").val();
	var idLP_hidden = $("#idLP_hidden").val();
	var idL_hidden = $("#idL_hidden").val();
	$.ajax({
		url: duongdan+"/"+idCL+"/"+idLP_hidden+".html",
		cache: false,
		success: function(data){
			$("#idLP").html(data);
		}
	});
	chk = setTimeout(function(){
		$.ajax({
			url: duongdans+"/"+idCL+"/"+idLP_hidden+"/"+idL_hidden+".html",
			cache: false,
			success: function(data){
				$("#idL").html(data);
			}
		});
	},135);
	if(duongdans!=null)
	{
		var idCL = $("#idCL").val();
		var idLP = $("#idLP").val();
		chk = setTimeout(function(){
			idCL = $("#idCL").val();
			idLP = $("#idLP").val();
			$.ajax({
				url: duongdans+"/"+idCL+"/"+idLP+"/0.html",
				cache: false,
				success: function(data){
					$("#idL").html(data);
				}
			});
		},135);
	}
	$("#idCL").change(function(){
		var duongdan = $("#duongdan").val();
		var idCL = $(this).val();
		$.ajax({
			url: duongdan+"/"+idCL+"/"+idLP_hidden+".html",
			cache: false,
			success: function(data){
				$("#idLP").html(data);
			}
		});
		var idLP = $("#idLP").val();
		chk = setTimeout(function(){
			idCL = $("#idCL").val();
			idLP = $("#idLP").val();
			$.ajax({
				url: duongdans+"/"+idCL+"/"+idLP+"/0.html",
				cache: false,
				success: function(data){
					$("#idL").html(data);
				}
			});
		},135);
	});
	$("#idLP").change(function(){
		var idLP = $(this).val();
		$.ajax({
			url: duongdans+"/"+idCL+"/"+idLP+"/0.html",
			cache: false,
			success: function(data){
				$("#idL").html(data);
			}
		});
		chk = setTimeout(function(){
			idCL = $("#idCL").val();
			idLP = $("#idLP").val();
			$.ajax({
				url: duongdans+"/"+idCL+"/"+idLP+"/0.html",
				cache: false,
				success: function(data){
					$("#idL").html(data);
				}
			});
		},135);
	});
});